<h2><{$smarty.const._MI_XNEWS_TPL_POST_ARTICLE}></h2>

<{if count($errors)>0}>
<ul class="error">
<{foreach from=$errors item=e}>
<li><{$e}></li>
<{/foreach}>
</ul>
<{/if}>

<form action="./post.php" method="post" enctype="multipart/form-data" name="<{$xoops_dirname}>_post" id="<{$xoops_dirname}>_post">
<input type="hidden" name="action_news_post_preview" value="dummy">
<input type="hidden" name="a_id" value="<{$form.a_id}>">

<h3><{form_name name="a_title"}></h3>
<{form_input name="a_title" attr='size="60"'}><br>

<h3><{form_name name="a_topicid"}></h3>
<{form_input name="a_topicid"}><br>

<h3><{form_name name="a_ptime_date"}></h3>
<{form_xdate name="a_ptime" addtimeselect="1"}><br>

<h3><{form_name name="a_etime_date"}></h3>
<{form_input name="a_no_etime" id="a_no_etime"}>&nbsp;<span id="noExpireHelp" class="prototipHelp">&nbsp;</span><br>
<div id="input_a_etime"><{form_xdate name="a_etime" addtimeselect="1"}></div>

<h3><{form_name name="a_excerption"}></h3>
<{form_input name="a_excerption" attr='rows=4 style="width:100%"'}>

<h3><{form_name name="a_description"}></h3>
<{form_tinymce name="a_description"}>
<br>
<h3><{form_name name="a_links"}><span id="refLink" class="prototipHelp">&nbsp;</span></h3>
<{form_input name="a_links" attr="rows=4 style='width:100%'"}><br>
<h3><{form_name name="a_status"}></h3>
<{if $app.is_new && !$app.module_admin}>
	<{$smarty.const._MI_XNEWS_TPL_APPLY_REQUIRED}>
<{elseif !$app.module_admin}>
	<{labelvalue name="a_status"}>
<{else}>
	<{form_input name="a_status"}>
<{/if}>
<br>
<br>
<br>
<input type="submit" name="action_news_post_do" value="<{$smarty.const._SUBMIT}>"><br>
</form>
<script language="javascript">
Event.observe(window, "load", function(){
	xnews = new xEditor("<{$xoops_dirname}>");
    xnews.loadFormState();
	new Tip("noExpireHelp",
            '<{$smarty.const._MI_XNEWS_TPL_HELP_TEXT_EXPIRE}>', 
            {title: '<{$smarty.const._MI_XNEWS_TPL_HELP_TITLE_EXPIRE}>', className: 'darktip', effect: 'blind'});
    new Tip("refLink",
            '<{$smarty.const._MI_XNEWS_TPL_HELP_TEXT_LINK}>', 
            {title: '<{$smarty.const._MI_XNEWS_TPL_HELP_TITLE_LINK}>', className: 'darktip', effect: 'blind'});
});
</script>
